package com.bw.finance.eneity.invest;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lizhengqian
 * @since 2020-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EbankInvestLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 标的ID
     */
    @TableField("BID")
    private Long bid;

    /**
     * 投资人ID
     */
    @TableField("INVESTOR_ID")
    private Long investorId;

    /**
     * 投资时间
     */
    @TableField("INVEST_TIME")
    private Date investTime;

    /**
     * 生效时间
     */
    @TableField("EFFECTIVE_TIME")
    private Date effectiveTime;

    /**
     * 投资金额
     */
    @TableField("INVEST_AMOUNT")
    private BigDecimal investAmount;

    @TableField(exist = false)
    private String fullName;
}
